package com.example.coursedemo.object;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;

@Data
@Entity
public class Student {
    @NotBlank
    private String name;
    @Id
    private Integer sno;
    private Integer grade;
    private String major;
    private String college;
    private String course;

    public String getCourse(){
        return course;
    }

    public void setCourse(String course){
        this.course=course;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSno(Integer sno) {
        this.sno = sno;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getName() {
        return name;
    }

    public String getCollege() {
        return college;
    }

    public int getSno() {
        return sno;
    }

    public int getGrade() {
        return grade;
    }

    public String getMajor(){
        return major;
    }
}
